package com.wzdigit.wms.wms.controller.stockIn;

import com.wzdigit.framework.model.response.ErrorEntity;
import com.wzdigit.wms.basic.util.HttpSessionUtil;
import com.wzdigit.wms.wms.constant.WmsWareConstant;
import com.wzdigit.wms.wms.service.stockin.StockInAndQualityOutService;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
    * 品质借机，核心业务流程 先做入库增加库存，再做出库
    * @author shuaic
    * @date 2021/12/3 10:03
*/
@RestController
@Api(tags = "品质借机")
@RequestMapping(value = WmsWareConstant.API_VERSION)
public class StockInAndQualityOutController {

    private static  final String  REQUEST_MODEL = "/StockInAndQualityOut";

    @Autowired
    StockInAndQualityOutService stockInAndQualityOutService;
    @ApiOperation(value = "借机扫码", notes = "借机扫码")
    @ApiResponses({ @ApiResponse(code = 500, message = "系统出现异常", response = ErrorEntity.class) })
    @RequestMapping(value = REQUEST_MODEL + "/scan/{goodsSn}", method = RequestMethod.GET)
    public void  scan(
            @ApiParam("产品条码")
            @PathVariable String goodsSn,
            HttpServletRequest servletRequest){
        //stockInAndQualityOutService.scan(goodsSn, HttpSessionUtil.getLoginName(servletRequest));

    }






}
